package com.zhuojy.equity.mall.admin.common.entity.po.car;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * 车辆购车表(TCarPurchase)表实体类
 *
 * @author makejava
 * @since 2024-04-11 19:58:22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_car_purchase")
public class TCarPurchasePO implements Serializable {

    private static final long serialVersionUID = -870602750368906514L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
    * 车牌号
    */
    private Integer purchaseNumber;

    /**
    * 车架号
    */
    private String purchaseNumbertwo;

    /**
    * 购车时间
    */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date purchaseTime;

    /**
    * 购车金额
    */
    private String purchaseMoney;

    /**
    * 经办人
    */
    private String createUser;

    /**
    * 购车渠道
    */
    private String purchaseChannel;

    /**
    * 渠道电话
    */
    private String channelPhone;

    /**
    * 渠道地址
    */
    private String channelAddress;

    /**
    * 凭证
    */
    private String purchaseImg;

    /**
     * 结束时间
     */
    @TableField(exist = false)
    @JsonFormat(pattern="yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private LocalDate endTime;

    /**
     * 开始时间
     */
    @TableField(exist = false)
    @JsonFormat(pattern="yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private LocalDate startTime;

    /**
     * 用户名
     */
    @TableField(exist = false)
    private String nickName;

    /**
     * 车牌号
     */
    @TableField(exist = false)
    private String carNumber;

}
